-- GENERATED SPELL FOR [Grimtotem Geomancer] --


function spell0_10760(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10760', 3000, 1)
end

function spell1_10760(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(20813,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10760', 11000, 1)
end

function spell2_10760(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(11436,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10760', 10000, 1)
end

function Sorts_10760(pUnit, Event)
local choix_sorts_10760 = math.random(0, 2)
if choix_sorts_10760 == 0 then
pUnit:RegisterEvent('spell0_10760', 1, 1)
end
if choix_sorts_10760 == 1 then
pUnit:RegisterEvent('spell1_10760', 1, 1)
end
if choix_sorts_10760 == 2 then
pUnit:RegisterEvent('spell2_10760', 1, 1)
end
end

function mob10760_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10760', math.random(1500, 3000), 1)
end

function mob10760_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10760_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10760_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10760, 1, 'mob10760_Action')
RegisterUnitEvent(10760, 2, 'mob10760_Leave')
RegisterUnitEvent(10760, 3, 'mob10760_Kill')
RegisterUnitEvent(10760, 4, 'mob10760_Die')
